﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" StylesheetTheme="Content" AutoEventWireup="true" CodeFile="CadreList.aspx.cs" Inherits="BasicBase_Listenner_CadreList" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ul class="topmenu">
        <li>单位：
            <asp:DropDownList ID="DptDepartment" Width="300px" runat="server">
            </asp:DropDownList>
        </li>
        <li>姓名：<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:LinkButton ID="BtnSearch" runat="server" OnClick="BtnSearch_Click">查 询</asp:LinkButton>
        </li>
    </ul>
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="770px">
        <caption>
            <span>干部接警人员列表</span></caption>
        <tr>
            <td style="width: 100%; margin: 0; padding: 0;" align="left">
                <asp:GridView ID="GvwListCadre" runat="server" AutoGenerateColumns="False" PageSize="15"
                    OnRowDataBound="GvwList_RowDataBoundCadre" AllowPaging="True">
                    <Columns>
                        <asp:TemplateField>
                        <ItemTemplate>
                        <asp:Label ID="lblID" runat="server" ></asp:Label>
                        </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="UserName" HeaderText="用户姓名" />
                        <asp:BoundField DataField="DepartmentName" HeaderText="部门" />
                        <asp:TemplateField>
                        <ItemTemplate>
                        <asp:ImageButton ImageUrl="~/Images/delete.gif" ID="btnDelete" OnClientClick="return confirm('确定要删除此数据吗？')" CommandName='<%# Eval("ID") %>'  runat="server" 
                                oncommand="Unnamed1_Command"/>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
    <uc1:listpagecontral id="ListPageContral2" runat="server" pagesize="15" onpagesizechange="ListPageContral2_PageSizeChange" />
</asp:Content>

